<?php if(is_array($ringtone_related) && count($ringtone_related) > 0){	?>
	<span class="relation-title">
		Các bài nhạc cùng tên của tác giả:
		<a onclick="showall()" id="showall" style="cursor: pointer;">Show all</a>
	</span>
	<div class="showlist" id ="name1" style="display: none;">
	<table class="relation-tb" width="630px" cellpadding="0" cellspacing="0" border="1">
		<tr>
			<th>Bài hát</th>
			<th>RT</th>
			<th>RBT</th>
			<th>DEL</th>
			<th>Sáng tác</th>
		</tr>
		<?php 	foreach($ringtone_related as $item){ ?>
		<tr>
			<td width="260">
				<div class="player">
					<p><?php echo $item->getName()?></p>
					<object width="250" height="24" id="audioplayer1" data="<?php echo image_path('playa/player.swf');?>" type="application/x-shockwave-flash">
					<param value="player.swf" name="movie"/>
					<param value="playerID=1&amp;soundFile=<?php echo $item->getFullFilePathMp3();?>" name="FlashVars"/>
					<param value="high" name="quality"/>
					<param value="false" name="menu"/>
					<param value="transparent" name="wmode"/>
					</object>
				</div>
			</td>
			<td width="10">
				<?php echo $item->getRtStatus()?>
			</td>
			<td width="10"><?php echo $item->getRbtStatus()?></td>
			<td width="10">
				<?php 
				switch ($item->getOrInitRingtoneStatus()->getRtDelete()){
						case '1':
							echo 'A';
							break;
						case '2':
							echo 'U';
							break;
						case '0':
						default:
							echo 'N';
							break;
					}
				?>
			</td>
			<td><?php echo $item->getComposerName()?></td>
		</tr>
		<?php }	?>
	</table>
	
	</div>
<?php } ?>

<!--  Tất cả các bài đã thành nhạc chuông cùng tên -->
<?php if(is_array($ringtone_related_all) && count($ringtone_related_all) > 0){	?>
	<br clear="all" />
	<span class="relation-title">Các bài nhạc chuông cùng tên:<a onclick="showall_all()" id="showall-all" style="cursor: pointer;">Show all</a></span>
	<div class="showlist" id ="name2" style="display: none;">
	
		<table class="relation-tb" width="630px" cellpadding="0" cellspacing="0" border="1">
		<tr>
			<th>Bài hát</th>
			<th>RT</th>
			<th>RBT</th>
			<th>DEL</th>
			<th>Sáng tác</th>
		</tr>
		<?php 	foreach($ringtone_related_all as $item){ ?>
		<tr>
			<td width="260">
				<div class="player">
					<p><?php echo $item->getName()?></p>
					<object width="250" height="24" id="audioplayer1" data="<?php echo image_path('playa/player.swf');?>" type="application/x-shockwave-flash">
					<param value="player.swf" name="movie"/>
					<param value="playerID=1&amp;soundFile=<?php echo $item->getFullFilePathMp3();?>" name="FlashVars"/>
					<param value="high" name="quality"/>
					<param value="false" name="menu"/>
					<param value="transparent" name="wmode"/>
					</object>
				</div>
			</td>
			<td width="10">
				<?php echo $item->getRtStatus()?>
			</td>
			<td width="10"><?php echo $item->getRbtStatus()?></td>
			<td width="10">
				<?php 
				switch ($item->getOrInitRingtoneStatus()->getRtDelete()){
						case '1':
							echo 'A';
							break;
						case '2':
							echo 'U';
							break;
						case '0':
						default:
							echo 'N';
							break;
					}
				?>
			</td>
			<td><?php echo $item->getComposerName()?></td>
		</tr>
		<?php }	?>
	</table>
	</div>
<?php } ?>